import instance from '@/utils/request.js';




export const getShipList = (params) => {
  return instance({
    url: '/ship/list',
    method: 'get',
    params,
  })
};

export const addShip = (data) => {
  return instance({
    url: '/ship',
    method: 'post',
    data,
  })
};

export const deleteShip = (id) => {
  return instance({
    url: `/ship/${id}`,
    method: 'delete'
  })
};

export const auditShip = (data) => {
  return instance({
    url: '/ship',
    method: 'put',
    data,
  })
};
